package com.mlnx.device.pojo.dto;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.mlnx.device.enums.DeviceType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;


@Data
@ApiModel("血糖设备信息Dto")
public class SugarDeviceDto {

    @ApiModelProperty(value = "id")
    private Integer Id;

    @ApiModelProperty(value = "设备编号")
    private String numeration;

    @ApiModelProperty(value = "设备有效使用期")
    private Date validTime;

    @ApiModelProperty(value = "设备类型")
    @EnumValue
    private DeviceType deviceType;

    @ApiModelProperty(value = "mac地址")
    private String mac;

    @ApiModelProperty(value = "病人ID")
    private Integer patientId;

    @ApiModelProperty(value = "是否在线")
    private Integer state;

    @ApiModelProperty(value = "最后一次数据包时间")
    private Integer lastPacketTime;

    @ApiModelProperty(value = "最后一次血糖据")
    private Integer lastBg;
}
